<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

    <f:view contentType="text/html">
        <h:head>
            <f:facet name="first">
                <meta content='text/html; charset=UTF-8' http-equiv="Content-Type"/>
                <title>Login</title>
            </f:facet>
            <h:outputStylesheet library="css" name="styles.css"/> 
        </h:head>

        <h:body>
            <h:form>
                <div class="loginDiv">
                    <p:panel header="Login" >  
                        <h:panelGrid columns="2" >  
                            <p:outputLabel value="Username: *" />  
                            <p:inputText value="#{loginMediator.username}" required="true" label="Username"/>  

                            <p:outputLabel value="Password: *" />  
                            <p:password value="#{loginMediator.password}" required="true" label="Password"/>  

                            <p:outputLabel value=""/>
                            <p:commandButton action="#{loginMediator.attempLogin()}" value="Login"/>
                        </h:panelGrid>  
                    </p:panel>  
                </div>
            </h:form>
        </h:body>

    </f:view>
</html>

